﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSCV.Group8.BlogRollWebPart;
namespace CSCV.Group8.BlogRollWebPart.UnitTest
{
    public class MockView : Interface.IBRView
    {
        #region prop
        public List<Model.BRPost> RepeaterDataSource;
        public bool IsRepeaterBind = false;
        public Presenter.BRPresenter BRpresenter;
        #endregion

        public void AttachPresenter(Presenter.BRPresenter presenter)
        {
            if (presenter == null)
                throw new ArgumentNullException("presenter may not be null");

            this.BRpresenter = presenter;
        }

        public List<Model.BRPost> listPost
        {
            set
            {
                RepeaterDataSource = value;
                IsRepeaterBind = true;
            }
        }
    }
}
